import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store' // 导入store实例

import "./styles/global.scss";

import Vant from 'vant'
import 'vant/lib/index.css'

import { URL_link } from './constant/url.js'

import { useGet, usePost} from "@/utils/request";
import { PUBLIC } from "@/utils/common-func";

Vue.use(Vant);

Vue.prototype.$url= URL_link // 网络请求链接
Vue.prototype.$usePost = usePost
Vue.prototype.$useGet = useGet
Vue.prototype.$public = PUBLIC

Vue.config.productionTip = false

new Vue({
	router,
	store, // 挂载store
  render: h => h(App),
}).$mount('#app')
